package com.example.dameng.service.impl;

import com.example.dameng.entity.*;
import com.example.dameng.mapper.AdminMapper;
import com.example.dameng.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.List;

@Service("AdminService")
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper adminMapper;


    @Override
    public int addSubInfo(T_admininfo admininfo){return adminMapper.addSubInfo(admininfo);}
    @Override
    public int deleteSubInfo(int adminCode){ return adminMapper.deleteSubInfo(adminCode);}
    @Override
    public int updateSubInfo(T_admininfo admininfo){ return adminMapper.updateSubInfo(admininfo);}
    @Override
    public int updateSupplyStatus(T_supplystatus supplyStatus){return adminMapper.updateSupplyStatus(supplyStatus);}
    @Override
    public int updateSupplyLog(T_supplystatus supplyStatus){return adminMapper.updateSupplyLog(supplyStatus);}
    @Override
    public List<T_area> GetArea(){ return adminMapper.GetArea();}
    @Override
    public List<AreaList> getAreaInfo(){ return adminMapper.getAreaInfo();}
    @Override
    public List<AreaList> getAreaInfo2(String yesterday,String date){ return adminMapper.getAreaInfo2(yesterday,date);}
    @Override
    public List<T_admininfo> getSubInfo(){ return adminMapper.getSubInfo();}
    @Override
    public List<T_supplystatus> getApplyList(){return adminMapper.getApplyList();}
    @Override
    public AdminReport getMonthReport(String month, String areaName){ return adminMapper.getMonthReport(month,areaName);}
}
